package com.barrygee.android.threesixtyapp.data.satellite;


public class LatitudeLongitudeData 
{
	String latitude;
	String longitude;
	
	public LatitudeLongitudeData()
	{
		setLatitude();
		setLongitude();
	}
	
	
	/* TO DO - NEED INFO FROM SURREY SATELLITE - STRaND-1 TEAM *********************************************************/
	private Double getSatelliteLatitudeFromAPI()
	{
		/* USE THE SATELLITE API TO GET THE LATITUDE DATA FROM SATELITTE */
		
		
		/* TEMP CODE FOR TESTING PURPOSES */
		
		double tempLatitude = 55.945;
		
		return tempLatitude;
		
		/* ------------------------------ */
	}
	
	
	private void setLatitude()
	{
		// convert the double value to a String
		String theLatitude = String.valueOf( getSatelliteLatitudeFromAPI() );
		
		// replace '.' with '-'
		String newLatitude = theLatitude.replace(".", "-");
		
		// set var latitude to the converted and string replaced value 
		latitude = String.valueOf(newLatitude);
		
		// remove theLatitude / newLatitude vars from memory
		theLatitude = null;
		newLatitude = null;
	}
	
	
	public String Latitude()
	{
		return latitude;
	}
	
	
	
	
	/* TO DO - NEED INFO FROM SURREY SATELLITE - STRaND-1 TEAM *********************************************************/
	private Double getSatelliteLongitudeFromAPI()
	{
		// USE THE SATELLITE API TO GET THE LONGITUDE DATA FROM SATELITTE AND CONVERT TO A DOUBLE IF NEEDED
		

		/* TEMP CODE FOR TESTING PURPOSES */
		
		double tempLongitude = -1.20;
		
		return tempLongitude;
		
		/* ------------------------------ */
	}
	
	
	public void setLongitude()
	{
		// convert the double value to a String
		String theLongitude = String.valueOf( getSatelliteLongitudeFromAPI() );
		
		// replace '.' with '-'
		String newLongitude = theLongitude.replace(".", "-");
		
		longitude = String.valueOf(newLongitude);
		
		// remove theLatitude / newLatitude vars from memory
		theLongitude = null;
		newLongitude = null;
	}
	
	
	public String Longitude()
	{
		return longitude;
	}
	
}
